﻿using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.Model;
using System.Collections;
using OgilvyOne.DALFactory;

namespace OgilvyOne.BLL
{
    public class ContactUsBLL
    {
        /// </summary>
        /// <param> 查询留言</param>
        /// <returns></returns>
        public IList getContactus(ContactUsModel cum)
        {
            return ContactUsFactory.create().getContactus(cum);
        }
        /// </summary>
        /// <param> 删除单行留言</param>
        /// <returns></returns>
        public bool deleteContactu(int CONTACT_ID)
        {
            return ContactUsFactory.create().deleteContactu(CONTACT_ID);
        }
        /// </summary>
        /// <param> 删除多行留言</param>
        /// <returns></returns>
        public bool DeleteContactus(string CID)
        {
            return ContactUsFactory.create().DeleteContactus(CID);
        }
        /// </summary>
        /// <param> 查询一条留言</param>
        /// <returns></returns>
        public ContactUsModel selectContactus(int CONTACT_ID)
        {
            return ContactUsFactory.create().selectContactus(CONTACT_ID);
        }
    }
}
